﻿<Page x:Class="Hotel.WPF.ui.Hotelss.P_Hotel"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:extToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
      mc:Ignorable="d" 
      d:DesignHeight="584" d:DesignWidth="919" Height="584"
	Title="P_Hotel" Loaded="Page_Loaded">

    <extToolkit:BusyIndicator IsBusy="False" BusyContent="Chargement de la page en cours..." x:Name="busyTool" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,0,0,0" >
        <Grid VerticalAlignment="Top" HorizontalAlignment="Left" Name="gridPrincipal" Width="878" Height="533">
            <Label Content="GESTION DES HOTELS" Height="28" Margin="10,10,40,0" Name="label1" VerticalAlignment="Top" Background="#FFD3DCF2" FontWeight="Bold" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
            <TabControl Margin="10,43,12,10" Name="tbH">
                <TabItem Header="Hotels" Name="ti_h">
                    <Grid>
                        <GroupBox Header="Ajout d'un hotel" HorizontalAlignment="Left" Margin="10,12,0,0" Name="gbAdd" Height="283" VerticalAlignment="Top">
                            <Grid>
                                <Label Content="Pays" Height="28" HorizontalAlignment="Left" Margin="65,7,0,0" Name="label2" VerticalAlignment="Top" />
                                <Label Content="Classement" Height="28" HorizontalAlignment="Left" Margin="27,74,0,0" Name="label3" VerticalAlignment="Top" />
                                <Label Content="Adresse" Height="28" HorizontalAlignment="Left" Margin="356,84,0,0" Name="label4" VerticalAlignment="Top" />
                                <Label Content="Ville" Height="28" HorizontalAlignment="Left" Margin="375,10,0,0" Name="label5" VerticalAlignment="Top" />
                                <Label Content="Fax" Height="28" HorizontalAlignment="Left" Margin="70,154,0,0" Name="label6" VerticalAlignment="Top" />
                                <Label Content="Site web" Height="28" HorizontalAlignment="Left" Margin="44,183,0,0" Name="label7" VerticalAlignment="Top" />
                                <Label Content="Chaîne d'hotel" Height="28" HorizontalAlignment="Left" Margin="11,41,0,0" Name="label8" VerticalAlignment="Top" />
                                <Label Content="Nom d'hotel" Height="28" HorizontalAlignment="Left" Margin="330,42,0,0" Name="label9" VerticalAlignment="Top" />
                                <Label Content="Code postal" Height="28" HorizontalAlignment="Left" Margin="335,125,0,0" Name="label10" VerticalAlignment="Top" />
                                <Label Content="Téléphone" Height="28" HorizontalAlignment="Left" Margin="33,126,0,0" Name="label11" VerticalAlignment="Top" />
                                <ComboBox Height="23" ItemsSource="{Binding}" HorizontalAlignment="Left" Margin="105,11,0,0" Name="cb_pays" VerticalAlignment="Top" Width="172" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="414,12,0,0" Name="tb_ville" VerticalAlignment="Top" Width="185" />
                                <ComboBox Height="23" ItemsSource="{Binding}" HorizontalAlignment="Left" Margin="105,44,0,0" Name="cb_chaineHotel" VerticalAlignment="Top" Width="172" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="414,44,0,0" Name="tb_nomHotel" VerticalAlignment="Top" Width="185" />
                                <ComboBox Height="23" ItemsSource="{Binding}" HorizontalAlignment="Left" Margin="105,78,0,0" Name="cb_classement" VerticalAlignment="Top" Width="172" />
                                <TextBox Height="42" HorizontalAlignment="Left" Margin="414,78,0,0" Name="tb_adresse" VerticalAlignment="Top" Width="185" AcceptsReturn="True" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="414,126,0,0" Name="tb_codePostal" VerticalAlignment="Top" Width="121" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="105,128,0,0" Name="tb_telephone" VerticalAlignment="Top" Width="121" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="105,157,0,0" Name="tb_fax" VerticalAlignment="Top" Width="121" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="105,187,0,0" Name="tb_siteweb" VerticalAlignment="Top" Width="203" />
                                <Button Content="Ajouter" Height="30" HorizontalAlignment="Left" Margin="270,223,0,0" Name="bt_ajouter" VerticalAlignment="Top" Width="109" Click="bt_ajouter_Click" />
                                <Button Content="Modifier" Height="30" HorizontalAlignment="Left" Margin="385,223,0,0" Name="bt_modifier" VerticalAlignment="Top" Width="109" />
                                <DataGrid AutoGenerateColumns="False" Height="170" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="661,42,0,0" Name="dg_refCaractHotel" VerticalAlignment="Top" Width="330">
                                    <DataGrid.Columns>
                                        <DataGridCheckBoxColumn/>
                                        <DataGridTextColumn Binding="{Binding Code_Caracteristique}" Header="Code" IsReadOnly="True" Width="100" />
                                        <DataGridTextColumn Binding="{Binding Description_Caracterisque}" Header="Description" IsReadOnly="True" Width="200" />
                                    </DataGrid.Columns>
                                </DataGrid>
                                <Label Content="Choix des caractéristiques de l'hotel" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="658,7,0,0" Name="label22" VerticalAlignment="Top" />
                            </Grid>
                        </GroupBox>
                        <Label Content="Liste des hotels" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="12,300,0,0" Name="label23" VerticalAlignment="Top" />
                        <DataGrid AutoGenerateColumns="False" ItemsSource="{Binding}" Margin="17,326,0,10" Name="dg_hotel" Background="#FFB1F2B1" HorizontalAlignment="Left" Width="723">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Ref_Pays.Nom_Pays}" Header="Pays" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Ville_Hotel}" Header="Ville" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Nom_Hotel}" Header="Hotel" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Classement_ID}" Header="Classement" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Telephone}" Header="Téléphone" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Fax}" Header="Fax" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Code_Postal_Hotel}" Header="Code postal" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Adresse_Hotel}" Header="Adresse" IsReadOnly="True" Width="200" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </TabItem>
                <!--<TabItem Header="Caractéristiques Hotel" Name="ti_ch">
                    <Grid></Grid>
                </TabItem>-->
                <TabItem Header="Chambres" Name="ti_c">
                    <Grid>
                        <GroupBox Header="Ajout d'une chambre" HorizontalAlignment="Left" Margin="10,10,0,0" Name="groupBox1" Width="826" Height="241" VerticalAlignment="Top">
                            <Grid>
                                <Label Content="Type de chambre" Height="28" HorizontalAlignment="Left" Margin="14,53,0,0" Name="label13" VerticalAlignment="Top" />
                                <Label Content="Numéro de chambre" Height="28" HorizontalAlignment="Left" Margin="8,81,0,0" Name="label15" VerticalAlignment="Top" />
                                <Label Content="Notes aditionnelles" Height="28" HorizontalAlignment="Left" Margin="432,120,0,0" Name="label16" VerticalAlignment="Top" />
                                <Label Content="Hotel" Height="28" HorizontalAlignment="Left" Margin="12,19,0,0" Name="label18" VerticalAlignment="Top" />
                                <Label Content="Numéro Etage" Height="28" HorizontalAlignment="Left" Margin="242,83,0,0" Name="label19" VerticalAlignment="Top" />
                                <Label Content="Statut chambre" Height="28" HorizontalAlignment="Left" Margin="377,52,0,0" Name="label20" VerticalAlignment="Top" />
                                <Label Content="Description" Height="28" HorizontalAlignment="Left" Margin="16,120,0,0" Name="label21" VerticalAlignment="Top" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="134,86,0,0" Name="tb_numChambre" VerticalAlignment="Top" Width="69" />
                                <ComboBox ItemsSource="{Binding}" Height="23" HorizontalAlignment="Left" Margin="133,22,0,0" Name="cb_hotelChamb" VerticalAlignment="Top" Width="172" />
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="340,86,0,0" Name="tb_numEtageChamb" VerticalAlignment="Top" Width="71" />
                                <TextBox Height="49" HorizontalAlignment="Left" Margin="133,123,0,0" Name="tb_descChamb" VerticalAlignment="Top" Width="242" AcceptsReturn="True" />
                                <ComboBox ItemsSource="{Binding}" Height="23" HorizontalAlignment="Left" Margin="133,53,0,0" Name="cb_typeChamb" VerticalAlignment="Top" Width="172" />
                                <ComboBox  ItemsSource="{Binding}" Height="23" HorizontalAlignment="Left" Margin="494,53,0,0" Name="cb_statutChamb" VerticalAlignment="Top" Width="172" />
                                <TextBox AcceptsReturn="True" Height="49" HorizontalAlignment="Left" Margin="549,120,0,0" Name="tb_noteAddiChamb" VerticalAlignment="Top" Width="242" />
                                <Button Content="Ajouter" Height="29" HorizontalAlignment="Left" Margin="336,182,0,0" Name="bt_ajoutChambre" VerticalAlignment="Top" Width="119" Click="bt_ajoutChambre_Click" />
                            </Grid>
                        </GroupBox>
                        <DataGrid AutoGenerateColumns="False" IsReadOnly="True" ItemsSource="{Binding}" Margin="14,294,39,17" Name="dg_chambre" Background="#FFB1F2B1">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Hotels.Nom_Hotel}" Header="Hotel" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Ref_Type_Chambres.Nom_Type_Chambre}" Header="Type" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding Numero_Chambre}" Header="N°" IsReadOnly="True" Width="50" />
                                <DataGridTextColumn Binding="{Binding Nombre_Etage_Chambre}" Header="N° Etage" IsReadOnly="True" Width="80" />
                                <DataGridTextColumn Binding="{Binding Ref_Statut_Chambres.Nom_Statut_Chambre}" Header="Statut" IsReadOnly="True" Width="100" />
                                <DataGridTextColumn Binding="{Binding description_chambre}" Header="Description" IsReadOnly="True" Width="200" />
                                <DataGridTextColumn Binding="{Binding Notes_Additionnelles}" Header="Note" IsReadOnly="True" Width="200" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </TabItem>

                <TabItem Header="Equipements chambre" Name="ti_eq">
                    <Grid>
                        <Label Content="Equipement" Height="28" HorizontalAlignment="Left" Margin="17,30,0,0" Name="label17" VerticalAlignment="Top" />
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="143,35,0,0" Name="textBox8" VerticalAlignment="Top" Width="207" />
                        <DataGrid AutoGenerateColumns="False" Height="90" HorizontalAlignment="Left" IsReadOnly="True" ItemsSource="{Binding}" Margin="1,103,0,0" Name="dataGrid3" VerticalAlignment="Top" Width="393">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Nom_Chzine_Hotel}" Header="Nom" IsReadOnly="True" Width="200" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </Grid>
                </TabItem>
            </TabControl>
            
        </Grid>
    </extToolkit:BusyIndicator>
</Page>
